import type { PropType } from 'vue';

export const toolbarProps = {
	mode: {
		type: String,
		default: 'DEFAULT',
	},
	items: {
		type: Array as PropType<any[]>,
		default: () => [],
	},
	loading: {
		type: Boolean,
		default: false,
	},
};

export const toolbarItemProps = {
	item: {
		type: Object as PropType<any>,
	},
	slots: {
		type: Object as PropType<any>,
	},
	loading: {
		type: Boolean,
		default: false,
	},
};

export interface ToolbarEvents {
	(name: 'click', value: any): void;
}
